export default defineNuxtRouteMiddleware((to, from) => {
   if(process.client) {
       // 1: 获取到是否登录
       const uuidToken = useCookie("CC_TOKEN").value
       // 2: 如果登录那么直接跳转到首页
       if (!uuidToken) {
          window.location.href = "/login?from=" + to.fullPath
       }
   }
});
